    {include file="../view/head" /}
    <style>
    /*页面自定义样式*/
        .title h5,.titleb i{
            display: -webkit-box;
            overflow: hidden;
            text-overflow: ellipsis;
            word-wrap: break-word;
            word-break: break-all;
            white-space: normal !important;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }
    </style>
    </head>
    <body>
        {include file="../view/header" /}
        {include file="../view/sidebar" /}
        {include file="../view/right-sidebar" /}
        <!-- Start #content -->
        <div id="content">
            <!-- Start .content-wrapper -->
            <div class="content-wrapper">
                <div class="row">
                    <!-- Start .row -->
                    <!-- Start .page-header -->
                    <div class="col-lg-12 heading hidden-xs hidden-sm">
                        <!-- Start .bredcrumb -->
                        <ul id="crumb" class="breadcrumb"></ul>
                        <!-- End .breadcrumb -->
                    </div>
                    <!-- End .page-header -->
                </div>
                <!-- End .row -->
                <div class="outlet">
                    <!-- Start .outlet -->
                    <!-- Page start here ( usual with .row ) -->
                    <div class="row">
                        <div class="col-md-12">
                            <!-- col-lg-12 start here -->
                            <div class="panel-heading" style="padding: 10px 15px;">
                                <div class="tools">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <form method="get" action="#" enctype="application/x-www-form-urlencoded">
                                          <select name="key" class="dfinput">
                                              <option value="kjbh" selected>矿机编号</option>
                                              <option value="mobile">手机号</option>
                                              <option value="project">矿机名称</option>
                                          </select>&nbsp;
                                          <input name="val" type="text" class="dfinput" placeholder="搜索内容" />&nbsp;
                                          <input type="submit" class="btn" value="搜 索"/>&nbsp;
                                        </form>
                                      </tr>
                                    </table>
                                  </div>

                                <!-- Start .panel -->
                                <div class="panel-body">
                                    <table class="table table-bordered table-hover table-striped">
                                        <thead>
                                            <tr>
                                                <th>ID</th>
                                            <th>手机号</th>
                                            <th>矿机名称</th>
                                            <th>矿机编号</th>
                                            <th>购买时间</th>
                                            <th>矿机算力</th>
                                            <th>状态</th>
                                            <th>来源</th>
                                            <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        {foreach $lists as $list} 
                                            <tr>
                                                <td class="title"><h5 class="m0">{$list.id}</h5></td>
                                                <td class="typeb">{$list.mobile}</td>
                                                <td class="titleb">{$list.project}</td>
                                                <td class="titleb">{$list.kjbh}</td>
                                                <td class="titleb">{$list.addtime|date="Y-m-d H:i:s",###}</td>
                                                <td class="titleb">{$list.kjsl}GH/s</td>
                                                <td>
                                                    {if condition="$list.zt eq 0"}未运行{/if}
                                                    {if condition="$list.zt eq 1"}运行中{/if}
                                                    {if condition="$list.zt eq 2"}已结束{/if}      
                                                 </td>
                                                 <td>
                                                    {if condition="$list.type eq 0"}用户购买{/if}
                                                    {if condition="$list.type eq 1"}分享奖励{/if}
                                                    {if condition="$list.type eq 2"}注册赠送{/if}      
                                                    {if condition="$list.type eq 3"}工会赠送{/if}      
                                                    {if condition="$list.type eq 4"}会员赠送{/if}      
                                                 </td>  
                                                <td>
                                                    {if condition="$list.zt neq 3"}
                                                    <a class="mt5 btn btn-xs btn-primary" onClick="return confirm('确定扣回矿机?');" href="{:url('project/del_order',['id'=>$list.id])}/zt/0">扣回</a>
                                                    {/if}
                                                </td>
                                               
                                            </tr>
                                        {/foreach}
                                        </tbody>
                                    </table>
                                    <div class="row">
                                        <div class="col-md-6">
                                            {$lists->render()}
                                        </div>
                                        <div class="col-md-6">
                                            <p>总数：{$lists->total()}</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Page End here -->
                </div>
                <!-- End .outlet -->
            </div>
            <!-- End .content-wrapper -->
            <div class="clearfix"></div>
        </div>
        <!-- End #content -->
        {include file="../view/foot" /}
        <script>

        </script>
    </body>
</html>